package org.jeecg.modules.demo.userexist.entity;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.data.annotation.Transient;

/**
 * @Author yw
 * @Date 2021/3/15 11:32
 */
@Data
@Slf4j
public class UserExistData {

    private String firstDay;
    private String userCount;
    private String day2;
    private String day3;
    private String day4;
    private String day5;
    private String day6;
    private String day7;
    private String day14;
    private String day15;
    private String day16;
    private String day30;
    private String system;
    private String begintime;
    private String endtime;
    private String tableName;
    private Integer pageNo;
    private Integer pageSize;

    public void setDay2(String day2){
        if(day2.equals("0")){
            this.day2="/";
            return;
        }
        String str=String.valueOf((Double.valueOf(day2)/Double.valueOf(this.userCount))*100)+"%";
        this.day2=str;
    }
    public void setDay3(String day3){
        if(day3.equals("0")){
            this.day3="/";
            return;
        }
        String str=String.valueOf((Double.valueOf(day3)/Double.valueOf(this.userCount))*100)+"%";
        this.day3=str;
    }
    public void setDay4(String day4){
        if(day4.equals("0")){
            this.day4="/";
            return;
        }
        String str=String.valueOf((Double.valueOf(day4)/Double.valueOf(this.userCount))*100)+"%";
        this.day4=str;
    }
    public void setDay5(String day5){
        if(day5.equals("0")){
            this.day5="/";
            return;
        }
        String str=String.valueOf((Double.valueOf(day5)/Double.valueOf(this.userCount))*100)+"%";
        this.day5=str;
    }
    public void setDay6(String day6){
        if(day6.equals("0")){
            this.day6="/";
            return;
        }
        String str=String.valueOf((Double.valueOf(day6)/Double.valueOf(this.userCount))*100)+"%";
        this.day6=str;
    }
    public void setDay7(String day7){
        if(day7.equals("0")){
            this.day7="/";
            return;
        }
        String str=String.valueOf((Double.valueOf(day7)/Double.valueOf(this.userCount))*100)+"%";
        this.day7=str;
    }
    public void setDay14(String day14){
        if(day14.equals("0")){
            this.day14="/";
            return;
        }
        String str=String.valueOf((Double.valueOf(day14)/Double.valueOf(this.userCount))*100)+"%";
        this.day14=str;
    }
    public void setDay15(String day15){
        if(day15.equals("0")){
            this.day15="/";
            return;
        }
        String str=String.valueOf((Double.valueOf(day15)/Double.valueOf(this.userCount))*100)+"%";
        this.day15=str;
    }
    public void setDay16(String day16){
        if(day16.equals("0")){
            this.day16="/";
            return;
        }
        String str=String.valueOf((Double.valueOf(day16)/Double.valueOf(this.userCount))*100)+"%";
        this.day16=str;
    }
    public void setDay30(String day30){
        if(day30.equals("0")){
            this.day30="/";
            return;
        }
        String str=String.valueOf((Double.valueOf(day30)/Double.valueOf(this.userCount))*100)+"%";
        this.day30=str;
    }


}
